package org.metasketch.simulator.tools.resources;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("resource")
public class BasicResource {

	@XStreamAsAttribute
	protected String alias;

	@XStreamAsAttribute
	protected String name;

	@XStreamAsAttribute
	@XStreamAlias("quantity")
	protected String quantityExpression;

	@XStreamAsAttribute
	protected boolean restorable = false;

	public String getQuantityExpression() {
		return quantityExpression;
	}

	public void setQuantityExpression(String quantity) {
		this.quantityExpression = quantity;
	}

	public boolean isRestorable() {
		return restorable;
	}

	public void setRestorable(boolean restorable) {
		this.restorable = restorable;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

}
